public class RecordTypes {
	//map variable to hold record type map

	//string that gets set on initialization
	String CurrentObjectName;
	/*******************************************
	* initial constructor
	********************************************/
	public RecordTypes(String ObjectName) {
		CurrentObjectName = ObjectName;
		/*for (RecordType ThisRecordType : [Select Id, Name, SobjectType from RecordType where IsActive=true and SobjectType=:ObjectName]) {
			RecordTypeMapByName.put(ThisRecordType.Name, ThisRecordType);	
			RecordTypeMapById.put(ThisRecordType.Id, ThisRecordType);
		}*/
	}
	/*******************************************
	* Gives record type Id from a given record type name
	********************************************/
	public Id GetRecordTypeId(String RecordTypeName) {
		RecordType[] thisRecordType = [Select Id from RecordType where Name=:RecordTypeName and IsActive=true and SobjectType=:CurrentObjectName];
		if (thisRecordType.size()>0) {		
			return thisRecordType[0].Id;
		} else {
			return null;
		}
	}
	/*******************************************
	* Gives record type Name from a given record type Id
	********************************************/
	public String GetRecordTypeName(Id RecordTypeId) {
		RecordType[] thisRecordType2 = [Select Name from RecordType where Id=:RecordTypeId and IsActive=true and SobjectType=:CurrentObjectName];
		if (thisRecordType2.size()>0) {		
			return thisRecordType2[0].Name;
		} else {
			return null;
		}
	}
	/*******************************************
	* Gets record type naming suffix from record type name
	********************************************/
	public String GetOppNamingSuffix(String RecordTypeName){
		Map<String,String> OpportunitySufix =  new Map<String,String>();
		//add overrides for naming suffixes
		//OpportunitySufix.put('Gift','Gift Suffix');
		String Suffix;
		Suffix = OpportunitySufix.get(RecordTypeName);
		if (Suffix!=null) {
			return Suffix;
		} else {
			return RecordTypeName;	
		}
		
	}
	//TODO: figure out how to implement this scontrol code
	/****************************************************************
	* function to get recordtype name from the id from the js object
	* listing all record types
	****************************************************************
	function getRecordTypeName(oRecordTypeObject,RecordTypeId) {
		var ThisRecordTypeName = "";
		for (var RecordTypeName in oRecordTypeObject) {	
			if( oRecordTypeObject[RecordTypeName].Id==RecordTypeId) {	
				ThisRecordTypeName = RecordTypeName;
			}
		}
		return ThisRecordTypeName;
	}
	*/
	
	
}